gate theory of machine